package org.adream.account.dao;

import java.util.List;

import org.adream.account.entity.UserDetailEntity;
import org.apache.ibatis.annotations.Param;

@BaseMybatisDao
public interface UserDetailDao {
	
	int addUserDetail(UserDetailEntity userDetail);
	
	int deleteUserDetail(UserDetailEntity userDetail);
	
	int updateUserDetail(UserDetailEntity userDetail);
	
	UserDetailEntity queryUserDetailByUid(@Param("uid") String uid);
	
	UserDetailEntity queryUserDetailByDrAndUid(@Param("dr") int dr,@Param("uid") String uid);
	
	List<UserDetailEntity> queryUserDetailsByDr(@Param("dr") int dr);
	
	int replaceIntoUserDetail(UserDetailEntity userDetail);
	
	int updatePhoto(UserDetailEntity userDetail);

	int updateBankInfo(UserDetailEntity entity);
}